package com.autotrade;

import com.jfx.ErrUnknownSymbol;
import com.jfx.MarketInfo;
import com.jfx.strategy.StrategyRunner;

import java.io.IOException;

public class MyStrategy extends com.jfx.strategy.Strategy{


    @Override
    public void coordinate() {
        try {
            double ask = marketInfo(getSymbol(), MarketInfo.MODE_ASK);
            System.out.println(getSymbol()+".ask="+ask);
        } catch (ErrUnknownSymbol errUnknownSymbol) {
            errUnknownSymbol.printStackTrace();
        }
    }
}